import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
Vue.prototype.$http = axios;
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

Vue.config.productionTip = false;
Vue.use(ElementUI);
// 解决bug：页面/路由跳转后，滚动条消失，页面无法滚动
router.afterEach(() => {
  document
    .querySelector("body")
    .setAttribute("style", "overflow: auto !important;");
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
